<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 162 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */
 .style162p594{position:absolute;left:214px;top:803px}

 /* Position Styles */
 .ts162p0{position:absolute;left:106px;top:97px;}
 .ts162p1{position:absolute;left:352px;top:97px;}
 .ts162p3{position:absolute;left:665px;top:97px;}
 .ts162p7{position:absolute;left:106px;top:113px;}
 .ts162p8{position:absolute;left:706px;top:1026px;}
 .ts162p9{position:absolute;left:331px;top:1044px;}
 .ts162p13{position:absolute;left:106px;top:146px;}
 .ts162p14{position:absolute;left:106px;top:164px;}
 .ts162p17{position:absolute;left:106px;top:183px;}
 .ts162p18{position:absolute;left:106px;top:202px;}
 .ts162p20{position:absolute;left:106px;top:220px;}
 .ts162p22{position:absolute;left:106px;top:238px;}
 .ts162p24{position:absolute;left:106px;top:257px;}
 .ts162p26{position:absolute;left:106px;top:275px;}
 .ts162p28{position:absolute;left:106px;top:293px;}
 .ts162p30{position:absolute;left:106px;top:311px;}
 .ts162p32{position:absolute;left:106px;top:329px;}
 .ts162p34{position:absolute;left:106px;top:347px;}
 .ts162p36{position:absolute;left:106px;top:365px;}
 .ts162p39{position:absolute;left:106px;top:383px;}
 .ts162p41{position:absolute;left:106px;top:402px;}
 .ts162p43{position:absolute;left:106px;top:420px;}
 .ts162p45{position:absolute;left:106px;top:438px;}
 .ts162p47{position:absolute;left:106px;top:456px;}
 .ts162p49{position:absolute;left:106px;top:474px;}
 .ts162p51{position:absolute;left:106px;top:492px;}
 .ts162p52{position:absolute;left:106px;top:510px;}
 .ts162p55{position:absolute;left:106px;top:528px;}
 .ts162p57{position:absolute;left:106px;top:547px;}
 .ts162p58{position:absolute;left:106px;top:565px;}
 .ts162p60{position:absolute;left:106px;top:583px;}
 .ts162p62{position:absolute;left:106px;top:601px;}
 .ts162p64{position:absolute;left:106px;top:619px;}
 .ts162p66{position:absolute;left:106px;top:637px;}
 .ts162p68{position:absolute;left:106px;top:656px;}
 .ts162p69{position:absolute;left:106px;top:674px;}
 .ts162p70{position:absolute;left:106px;top:692px;}
 .ts162p72{position:absolute;left:106px;top:711px;}
 .ts162p73{position:absolute;left:106px;top:729px;}
 .ts162p75{position:absolute;left:106px;top:748px;}
 .ts162p77{position:absolute;left:106px;top:766px;}
 .ts162p78{position:absolute;left:376px;top:783px;}
 .ts162p80{position:absolute;left:622px;top:953px;}
 .ts162p81{position:absolute;left:106px;top:968px;}

 /* Font Styles */
 .ft0p162{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p162{font-weight:normal;}
 .ft2p162{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p162{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p162{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p162{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p162{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft7p162{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground162{position:absolute;left:97px;top:200px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index161.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;162 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index163.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground162><img src="./background162.png" width="633" height="855" border="0" alt=""></div>
<div class=style162p594><img src="./image162_594.png" width="408" height="165" border="0" alt=""></DIV>
<div class=ts162p0><span class="ft0p162"> </span></div>
<div class=ts162p1><span class="ft0p162">Gravitybox Schedule Primer<span class="ft1p162"> </span></span></div>
<div class=ts162p3><span class="ft0p162">Page 160&nbsp; </span></div>
<div class=ts162p7><span class="ft2p162"> </span></div>
<div class=ts162p8><span class="ft3p162"> </span></div>
<div class=ts162p9><span class="ft4p162">1998&#45;2004 Gravitybox Software LLC<span class="ft3p162"> </span></span></div>
<div class=ts162p13><span class="ft5p162">date range displayed. For example, if we are in month mode and the selected date was </span></div>
<div class=ts162p14><span class="ft5p162">February 16, the displayed Month would be February.&nbsp; </span></div>
<div class=ts162p17><span class="ft5p162"> </span></div>
<div class=ts162p18><span class="ft6p162">Schedule1.AutoRedraw = False </span></div>
<div class=ts162p20><span class="ft6p162">Select Case DisplayMode </span></div>
<div class=ts162p22><span class="ft6p162">&nbsp;&nbsp; </span></div>
<div class=ts162p24><span class="ft6p162">&nbsp; Case cdcDay: </span></div>
<div class=ts162p26><span class="ft6p162">&nbsp;&nbsp;&nbsp; Call Schedule1.SetMinMaxDate( _ </span></div>
<div class=ts162p28><span class="ft6p162">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MonthView1.Value, MonthView1.Value) </span></div>
<div class=ts162p30><span class="ft6p162">&nbsp;&nbsp; </span></div>
<div class=ts162p32><span class="ft6p162">&nbsp; Case cdcWorkWeek: </span></div>
<div class=ts162p34><span class="ft6p162">&nbsp;&nbsp;&nbsp; Call Schedule1.SetMinMaxDate( _ </span></div>
<div class=ts162p36><span class="ft6p162">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FirstDayOfWeek(MonthView1.Value, vbMonday), _ </span></div>
<div class=ts162p39><span class="ft6p162">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LastDayOfWeek(MonthView1.Value, vbFriday)) </span></div>
<div class=ts162p41><span class="ft6p162">&nbsp;&nbsp; </span></div>
<div class=ts162p43><span class="ft6p162">&nbsp; Case cdcWeek: </span></div>
<div class=ts162p45><span class="ft6p162">&nbsp; Call Schedule1.SetMinMaxDate( _ </span></div>
<div class=ts162p47><span class="ft6p162">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FirstDayOfWeek(MonthView1.Value), _ </span></div>
<div class=ts162p49><span class="ft6p162">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LastDayOfWeek(MonthView1.Value)) </span></div>
<div class=ts162p51><span class="ft6p162"> </span></div>
<div class=ts162p52><span class="ft6p162">&nbsp; Case cdcMonth: </span></div>
<div class=ts162p55><span class="ft6p162">&nbsp;&nbsp;&nbsp; 'Do Nothing Yet </span></div>
<div class=ts162p57><span class="ft6p162"> </span></div>
<div class=ts162p58><span class="ft6p162">End Select </span></div>
<div class=ts162p60><span class="ft6p162">Call LoadForm </span></div>
<div class=ts162p62><span class="ft6p162">Call RefreshHeaderFormat </span></div>
<div class=ts162p64><span class="ft6p162">Call frmMDI.SetStatus(oAppointments.Count &#38; &#34; Items&#34;) </span></div>
<div class=ts162p66><span class="ft6p162">Schedule1.AutoRedraw = True<span class="ft5p162"> </span></span></div>
<div class=ts162p68><span class="ft5p162"> </span></div>
<div class=ts162p69><span class="ft5p162">This code will set the MinDate and MaxDate to the appropriate values depending on the </span></div>
<div class=ts162p70><span class="ft5p162">MonthView value and the display mode. Notice that the AutoRedraw was set to false </span></div>
<div class=ts162p72><span class="ft5p162">while loading occurred. This will speed up the loading significantly. The schedule will </span></div>
<div class=ts162p73><span class="ft5p162">normally redraw itself after every appointment addition. We will toggle this feature off </span></div>
<div class=ts162p75><span class="ft5p162">only during load. </span></div>
<div class=ts162p77><span class="ft5p162"> </span></div>
<div class=ts162p78><span class="ft7p162">Figure 16.6 </span></div>
<div class=ts162p80><span class="ft5p162"> </span></div>
<div class=ts162p81><span class="ft5p162"> </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
